package com.spring.ioc.example.pojo;

public class User {
    private String name;
    public User(){
        System.out.println("None Constructor has been called...");
    }
    public User(String name){
        System.out.println("Constructor User(String name) has been called...");
        this.name = name;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("Function setName() has been called...");
        this.name = name;
    }
    public void show(){
        System.out.println("name = " + name);
    }
}
